-- GENERATED SPELL FOR [Seasoned Irondeep Surveyor] --


function spell0_13555(pUnit, Event) --@Heal,Heal--
pUnit:FullCastSpellOnTarget(15586,pUnit)
pUnit:RegisterEvent('Sorts_13555', 3500, 1)
end

function spell1_13555(pUnit, Event) --@Holy Smite,n/a--
pUnit:FullCastSpellOnTarget(15498,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_13555', 2500, 1)
end

function spell2_13555(pUnit, Event) --@Shadow Word: Pain,n/a--
pUnit:FullCastSpellOnTarget(15654,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_13555', 18000, 1)
end

function Sorts_13555(pUnit, Event)
local choix_sorts_13555 = math.random(0, 2)
if choix_sorts_13555 == 0 then
pUnit:RegisterEvent('spell0_13555', 1, 1)
end
if choix_sorts_13555 == 1 then
pUnit:RegisterEvent('spell1_13555', 1, 1)
end
if choix_sorts_13555 == 2 then
pUnit:RegisterEvent('spell2_13555', 1, 1)
end
end

function mob13555_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_13555', math.random(1500, 3000), 1)
end

function mob13555_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13555_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13555_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(13555, 1, 'mob13555_Action')
RegisterUnitEvent(13555, 2, 'mob13555_Leave')
RegisterUnitEvent(13555, 3, 'mob13555_Kill')
RegisterUnitEvent(13555, 4, 'mob13555_Die')
